package de.tabuma.soap.entity.soap;

import java.io.*;
import javax.jdo.annotations.*;

import de.tabuma.soap.annotation.*;
import de.tabuma.soap.entity.wsdl.TExtensibilityElement;

/**
 * This class represents an element of an wsdl document, in this case used as extends class.
 * @author $Author: alefen $
 * @version $Revision: 1.1 $
 * @since $Date: 2009/12/30 02:57:12 $
 */
@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class SBodyAttributes implements Serializable {

    public SBodyAttributes() {
        this.tExtensibilityElementId = new Long(0);
    }

    @PrimaryKey
    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
    private Long id;
    public Long getId() {
        return id;
    }

    @Persistent
    @SoapExtendsDefinition(extendsClass=TExtensibilityElement.class)
    private Long tExtensibilityElementId;
    public Long getTExtensibilityElementId() {
        return tExtensibilityElementId;
    }
    public void setTExtensibilityElementId(Long tExtensibilityElementId) {
        this.tExtensibilityElementId = tExtensibilityElementId;
    }

    @Persistent
    @SoapAttribute
    private String namespace;
    public String getNamespace() {
        return namespace;
    }
    public void setNamespace(String namespace) {
        this.namespace = namespace;
    }

    @Persistent
    @SoapAttribute
    private String encodingStyle;
    public void setEncodingStyle(String encodingStyle) {
        this.encodingStyle = encodingStyle;
    }
    public String getEncodingStyle() {
        return encodingStyle;
    }
    public String[] getEncodingStyleAsList() {
        return this.encodingStyle.split(" ");
    }

    @Persistent
    @SoapAttribute
    private String use;
    public String getUse() {
        return use;
    }
    public void setUse(String use) {
        this.use = use;
    }

}
